<%--
  Created by IntelliJ IDEA.
  User: YE
  Date: 2018-06-07
  Time: 21:35
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
    <title>登录</title>
    <link rel="stylesheet" type="text/css" href="${ctx}/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="${ctx}/css/login.css">
    <script src="${ctx}/js/jquery-3.3.1.js"></script>
    <script src="${ctx}/js/bootstrap.min.js"></script>
    <script src="${ctx}/js/login.js"></script>
	<script src="${ctx}/js/click.js"></script>
    <c:if test="${!empty requestScope.message}">
        <script>
            alert("${requestScope.message}");
        </script>
    </c:if>
</head>
<body>
<div class="container">
    <h2>登录</h2>
    <form action="/user/login" method="post">
        <div class="input"><input type="text" class="form-control" placeholder="请输入帐号" name="username"></div>
        <div class="input"><input type="password" class="form-control" placeholder="请输入密码" name="password"></div>
        <div class="input"><input type="submit" class="btn btn-primary" value="登录"/><a href="register.jsp">还没有帐号？马上注册</a></div>
    </form>
</div>
</body>
